#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "PWM.h"
#include "Key.h"

uint8_t Key_Num;
int main(void)
{
	PWM_Init();
	Key_Init();
	while(1)
	{
		Key_Num = Key_GetNum();
		if (Key_Num == 1)
		{
			PWM_SetCompare1(50);
		}
		if (Key_Num == 2)
		{
			PWM_SetCompare1(150);
		}
		if (Key_Num == 3)
		{
			PWM_SetCompare1(200);
		}
		if (Key_Num == 4)
		{
			PWM_SetCompare1(250);
		}
	}
}


